﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;

namespace CommunitySystem.Model.Silverlight
{
    public class BAS_CJWXXModelcs:DataEntity
    {
        private int _ID=0;
        public int ID
        {
            get { return _ID; }
            set
            {
                if (_ID != value)
                {
                    _ID = value;
                    Validate("ID", value, this);
                };
            }
        }

        private string _Name = string.Empty;
        [Required(ErrorMessage = "村居名称不能为空！")]
        public string Name
        {
            get { return _Name; }
            set
            {
                if (_Name != value)
                {
                    _Name = value;
                    Validate("Name", value, this);
                };
            }
        }

        private string _JWDM = string.Empty;
         [Required(ErrorMessage = "村居代码不能为空！")]
        public string JWDM
        {
            get { return _JWDM; }
            set
            {
                if (_JWDM != value)
                {
                    _JWDM = value;
                    Validate("JWDM", value, this);
                };
            }
        }
         private string _JWJJ = string.Empty;
         public string JWJJ { get { return _JWJJ; } set { if (_JWJJ != value) { _JWJJ = value; Validate("JWJJ", value, this); } } }

         private string _ZMJ = string.Empty;
         public string ZMJ { get { return _ZMJ; } set { if (_ZMJ != value) { _ZMJ = value; Validate("ZMJ", value, this); } } }

         private string _DZ = string.Empty;
         public string DZ { get { return _DZ; } set { if (_DZ != value) { _DZ = value; Validate("DZ", value, this); } } }

         private string _YB = string.Empty;
         public string YB { get { return _YB; } set { if (_YB != value) { _YB = value; Validate("YB", value, this); } } }

         private string _QYFW = string.Empty;
         public string QYFW { get { return _QYFW; } set { if (_QYFW != value) { _QYFW = value; Validate("QYFW", value, this); } } }

         private string _SSSQ = string.Empty;
         public string SSSQ { get { return _SSSQ; } set { if (_SSSQ != value) { _SSSQ = value; Validate("SSSQ", value, this); } } }

         private string _LXDH = string.Empty;
         public string LXDH { get { return _LXDH; } set { if (_LXDH != value) { _LXDH = value; Validate("LXDH", value, this); } } }

         private string _DW = string.Empty;
         public string DW { get { return _DW; } set { if (_DW != value) { _DW = value; Validate("DW", value, this); } } }

         private string _BZ = string.Empty;
         public string BZ { get { return _BZ; } set { if (_BZ != value) { _BZ = value; Validate("BZ", value, this); } } }



    }

    public class BAS_XQXXModelcs : DataEntity
    {
        private int _ID = 0;
        public int ID { get { return _ID; } set { if (_ID != value) { _ID = value; Validate("ID", value, this); } } }
        private string _XQDZ = string.Empty;
         [Required(ErrorMessage = "小区地址不能为空！")]
        public string XQDZ { get { return _XQDZ; } set { if (_XQDZ != value) { _XQDZ = value; Validate("XQDZ", value, this); } } }
        private string _XQName = string.Empty;
        [Required(ErrorMessage = "小区名称不能为空！")]
        public string XQName { get { return _XQName; } set { if (_XQName != value) { _XQName = value; Validate("XQName", value, this); } } }

        private int _CJID = 0;
        public int CJID { get { return _CJID; } set { if (_CJID != value) { _CJID = value; Validate("CJID", value, this); } } }

        private string _WYName = string.Empty;
        public string WYName { get { return _WYName; } set { if (_WYName != value) { _WYName = value; Validate("WYName", value, this); } } }

        private string _WYTel = string.Empty;
        public string WYTel { get { return _WYTel; } set { if (_WYTel != value) { _WYTel = value; Validate("WYTel", value, this); } } }

        private string _WYOfficeDZ = string.Empty;
        public string WYOfficeDZ { get { return _WYOfficeDZ; } set { if (_WYOfficeDZ != value) { _WYOfficeDZ = value; Validate("WYOfficeDZ", value, this); } } }

        private string _WYLinkMan = string.Empty;
        public string WYLinkMan { get { return _WYLinkMan; } set { if (_WYLinkMan != value) { _WYLinkMan = value; Validate("WYLinkMan", value, this); } } }

        private string _ConstructionTime = string.Empty;
        public string ConstructionTime { get { return _ConstructionTime; } set { if (_ConstructionTime != value) { _ConstructionTime = value; Validate("ConstructionTime", value, this); } } }

        private string _ConstructionArea = string.Empty;
        public string ConstructionArea { get { return _ConstructionArea; } set { if (_ConstructionArea != value) { _ConstructionArea = value; Validate("ConstructionArea", value, this); } } }

        private string _GreenArea = string.Empty;
        public string GreenArea { get { return _GreenArea; } set { if (_GreenArea != value) { _GreenArea = value; Validate("GreenArea", value, this); } } }

        private int _BuildingsNum = 0;
        [Range(0, int.MaxValue, ErrorMessage = "请输入大于等于0的数")]
        public int BuildingsNum
        {
            get { return _BuildingsNum; }
            set
            {
                if (_BuildingsNum != value)
                {
                    _BuildingsNum = value;
                    Validate("BuildingsNum", value, this);
                }
            }
        }

        private int _GatesNum = 0;
        public int GatesNum { get { return _GatesNum; } set { if (_GatesNum != value) { _GatesNum = value; Validate("GatesNum", value, this); } } }

        private int _DoorsNum = 0;
        public int DoorsNum { get { return _DoorsNum; } set { if (_DoorsNum != value) { _DoorsNum = value; Validate("DoorsNum", value, this); } } }

    }

    public class BAS_KQXXModelcs : DataEntity
    {
        private int _Id = 0;
        public int Id { get { return _Id; } set { if (_Id != value) { _Id = value; Validate("Id",value,this); } } }

        private string _KqName = string.Empty;
        [Required(ErrorMessage="块区名称不能为空！")]
        public string KqName { get { return _KqName; } set { if (_KqName != value) { _KqName = value; Validate("KqName",value,this); } } }

        private int _JWID = 0;
        public int JWID { get { return _JWID; } set { if (_JWID != value) { _JWID = value; Validate("JWID", value, this); } } }

        private string _LXDH = string.Empty;
        public string LXDH { get { return _LXDH; } set { if (_LXDH != value) { _LXDH = value; Validate("LXDH", value, this); } } }

        private List<SimpleObject<int, string, int, bool>> _CuHaoKqRelations;
        public List<SimpleObject<int, string, int, bool>> CuHaoKqRelations
        {
            get { return _CuHaoKqRelations; }
            set { if (_CuHaoKqRelations != value) { _CuHaoKqRelations = value; Validate("CuHaoKqRelations", value, this); } }
        }

        private string _ZhuZ = string.Empty;
        public string ZhuZ { get { return _ZhuZ; } set { if (_ZhuZ != value) { _ZhuZ = value; Validate("ZhuZ", value, this); } } }

        private string _KQRenCount = string.Empty;
        public string KQRenCount { get { return _KQRenCount; } set { if (_KQRenCount != value) { _KQRenCount = value; Validate("KQRenCount", value, this); } } }

        private string _FWXQ = string.Empty;
        public string FWXQ { get { return _FWXQ; } set { if (_FWXQ != value) { _FWXQ = value; Validate("FWXQ", value, this); } } }

    }

    public class BAS_KQRYcs : DataEntity
    {
        private int _Id = 0;
        public int Id { get { return _Id; } set { if (_Id != value) { _Id = value; Validate("Id", value, this); } } }
        private string _XM = string.Empty;
        [Required(ErrorMessage="姓名不能为空！")]
        public string XM { get { return _XM; } set { if (_XM != value) { _XM = value; Validate("XM",value,this); } } }
        private string _SFZH = string.Empty;
        public string SFZH { get { return _SFZH; } set { if (_SFZH != value) { _SFZH = value; Validate("SFZH",value,this); } } }
        private string _XB = string.Empty;
        public string XB { get { return _XB; } set { if (_XB != value) { _XB = value; Validate("XB", value, this); } } }
        private string _LXFS = string.Empty;
        public string LXFS { get { return _LXFS; } set { if (_LXFS != value) { _LXFS = value; Validate("LXFS", value, this); } } }
        private string _GangWei = string.Empty;
        public string GangWei { get { return _GangWei; } set { if (_GangWei != value) { _GangWei = value; Validate("GangWei",value,this); } } }

        private string _JueSe = string.Empty;
        public string JueSe { get { return _JueSe; } set { if (_JueSe != value) { _JueSe = value; Validate("JueSe", value, this); } } }

        private string _KQName = string.Empty;
        public string KQName { get { return _KQName; } set { if (_KQName != value) { _KQName = value; Validate("KQName", value, this); } } }

        private List<BAS_KQRYGX> _CuBAS_KQRYGX;
       public List<BAS_KQRYGX> CuBAS_KQRYGX { get{return _CuBAS_KQRYGX;} set{if(_CuBAS_KQRYGX!=value){_CuBAS_KQRYGX=value;Validate("CuBAS_KQRYGX",value,this);}} }
    }

    public class BAS_KQRYGX 
    {
       
        public int Id { get; set; }
     
        public int KQID { get; set; }
      
        public int KQRYID { get; set; }
     
        public string JueSe { get; set; }
      
        public string GangWei { get; set; }



     
    }


    public class SimpleObject<T1, T2, T3, T4>
    {
        public T1 Item1 { get; set; }
        public T2 Item2 { get; set; }
        public T3 Item3 { get; set; }
        public T4 Item4 { get; set; }
    }
}
